package com.ruoyi.third.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.third.mapper.ThirdErrorMapper;
import com.ruoyi.third.domain.ThirdError;
import com.ruoyi.third.service.IThirdErrorService;

/**
 * 错误日志Service业务层处理
 * 
 * @author yepanpan
 * @date 2025-02-06
 */
@Service
public class ThirdErrorServiceImpl implements IThirdErrorService 
{
    private static final Logger log = LoggerFactory.getLogger(ThirdErrorServiceImpl.class);

    @Autowired
    private ThirdErrorMapper thirdErrorMapper;

    /**
     * 查询错误日志
     * 
     * @param id 错误日志主键
     * @return 错误日志
     */
    @Override
    public ThirdError selectThirdErrorById(Long id)
    {
        return thirdErrorMapper.selectThirdErrorById(id);
    }

    /**
     * 查询错误日志列表
     * 
     * @param thirdError 错误日志
     * @return 错误日志
     */
    @Override
    public List<ThirdError> selectThirdErrorList(ThirdError thirdError)
    {
        return thirdErrorMapper.selectThirdErrorList(thirdError);
    }

    /**
     * 新增错误日志
     * 
     * @param thirdError 错误日志
     * @return 结果
     */
    @Override
    public int insertThirdError(ThirdError thirdError)
    {
        return thirdErrorMapper.insertThirdError(thirdError);
    }

    /**
     * 修改错误日志
     * 
     * @param thirdError 错误日志
     * @return 结果
     */
    @Override
    public int updateThirdError(ThirdError thirdError)
    {
        return thirdErrorMapper.updateThirdError(thirdError);
    }

    /**
     * 批量删除错误日志
     * 
     * @param ids 需要删除的错误日志主键
     * @return 结果
     */
    @Override
    public int deleteThirdErrorByIds(Long[] ids)
    {
        return thirdErrorMapper.deleteThirdErrorByIds(ids);
    }

    /**
     * 删除错误日志信息
     * 
     * @param id 错误日志主键
     * @return 结果
     */
    @Override
    public int deleteThirdErrorById(Long id)
    {
        return thirdErrorMapper.deleteThirdErrorById(id);
    }


}
